<div class="control-group{% if field.errors %} error{% endif %}{% if field.field.required %} required{% endif %}">
    {% if input_type != "checkbox" %}
        <label class="control-label"{% if field.auto_id and input_type != "multicheckbox" and input_type != "radioset" %} for="{{ field.auto_id }}"{% endif %}>{{ field.label }}</label>
    {% endif %}
    <div class="controls{% if float %} controls-row{% endif %}">
        {% if input_type == "checkbox" %}
            {% include "bootstrap_toolkit/field_checkbox.html" %}
            {% include "bootstrap_toolkit/field_errors.html" with display="inline" %}
        {% else %}
            {% if input_type == "multicheckbox" %}
                {% include "bootstrap_toolkit/field_choices.html" with type="checkbox" %}
                {% include "bootstrap_toolkit/field_errors.html" with display="block" %}
            {% else %}
                {% if input_type == "radioset" %}
                    {% include "bootstrap_toolkit/field_choices.html" with type="radio" %}
                    {% include "bootstrap_toolkit/field_errors.html" with display="block" %}
                {% else %}
                    {% include "bootstrap_toolkit/field_default.html" %}
                    {% include "bootstrap_toolkit/field_errors.html" with display="inline" %}
                {% endif %}
            {% endif %}
        {% endif %}
        {% include "bootstrap_toolkit/field_help.html" with display="block" %}
    </div>
</div>
